<script setup>
import {ref} from "vue"
const count = ref(0)
const handleadd = ()=>{
    console.log('点击了')
    count.value = count.value+1
}
</script>

<template>
<div class="comp-container ">
    <div class="comp-main ">
        使用组件1*1
        <div>
            <button @click="handleadd">+1</button>
        </div>
       
        <div>{{ count }}</div>
    </div>
    <div class="padding-b"></div>
</div>
</template>

<style scoped>
.comp-container{
    height: 131.66px;
    width: 190px;
}
.comp-main{
    height: 125px;
    width: 190px;

    background-color:rgb(67,198,249) ;

}
.padding-b{
    width: 100%;
    height: 6.66px;
}

</style>